//
//  ModelOfInternet.m
//  UI_Project_A
//
//  Created by dllo on 16/1/25.
//  Copyright © 2016年 GH. All rights reserved.
//

#import "ModelOfInternet.h"

@implementation ModelOfInternet


- (void)setValue:(id)value forUndefinedKey:(NSString *)key {
    
}

#pragma mark - 必须实现NSCoding两个协议方法.
/** 归档时会自动调用此方法 */
- (void)encodeWithCoder:(NSCoder *)aCoder {
    // 将需要保存的属性进行编码
    [aCoder encodeObject:self.content forKey:@"content"];
    [aCoder encodeObject:self.title forKey:@"title"];
    [aCoder encodeObject:self.url forKey:@"url"];
    [aCoder encodeObject:self.ts forKey:@"ts"];
}
/** 反归档时自动调用此方法 */
- (instancetype)initWithCoder:(NSCoder *)aDecoder {
    self = [super init];
    if (self) {
        self.content = [aDecoder decodeObjectForKey:@"content"];
        self.title = [aDecoder decodeObjectForKey:@"title"];
        self.url = [aDecoder decodeObjectForKey:@"url"];
        self.ts = [aDecoder decodeObjectForKey:@"ts"];
    }
    return self;
}






@end
